const http = require("http")
const server = http.createServer()
const fs = require("fs")


server.on("request", (request, response) => {
  // request.url
  // request.headers
  // request.params  => {}
  // request.body
  console.log(request.url)
  const stream = fs.createReadStream("./template" + request.url + ".html")
  stream.pipe(response)
})



server.listen(10085)
